# -*- encoding:utf-8 -*-
'''
	pipelines_txt.py
	======================
	@descript: 
	@copyright:chinasoft
	@author:zhangsiqi
	@date: 2021-01-26 16:49
	@version:v1.0
'''

class Moviedy90Pipeline(object):
    def process_item(self, item, spider):
        with open("content.txt", 'wb') as f:
            for t,p,r,i in zip(item['name'],item['pic_url'],item['release_type'],item['release_time']):
                str = t + "--" + p + "--" + r+ "--" +i+"\n"
                f.write(str.encode())
        return item

if __name__ == '__main__':
    pass